package task3

class Department {
    String name

    static hasMany = [projects: Project]

    static constraints = {
        name(size: 3..20, blank: false, unique:true)

    }
    String toString(){
        "${name}"
    }
}
